﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace td.Core
{
    public abstract class AbstractToolButtonCommand : AbstractCommand, IMenuCommand, ICommand
    {
        private bool isEnabled = true;
        private bool isVisible = true;

        protected AbstractToolButtonCommand()
        {
        }
        public virtual string ShortCut { get; set; }
        public virtual string ToolTip { get; set; }
        public virtual string GroupName { get; set; }
        public virtual string PageName { get; set; }
        private string caption = "按钮";
        public virtual string Caption
        {
            get { return this.caption; }
            set { this.caption = value; }
        }

        public virtual Image smallImage { get; set; }
        public virtual Image largeImage { get; set; }


        public virtual bool IsEnabled
        {
            get
            {
                return this.isEnabled;
            }
            set
            {
                this.isEnabled = value;
            }
        }

        public virtual bool IsVisible
        {
            get
            {
                return this.isVisible;
            }
            set
            {
                this.isVisible = value;
            }
        }
    }
}
